package com.sayyi.demo.swagger;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author xuchuang
 * date 2021/12/23 3:29 PM
 */
@SpringBootApplication
@OpenAPIDefinition(
        info = @Info(
                title = "swagger demo api",
                version = "1.0",
                description = "swagger 和 openapi 的 示例项目",
                license = @License(name = "Apache 2.0", url = "https://www.apache.org/licenses/LICENSE-2.0.html")
        )
)
public class SwaggerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SwaggerApplication.class, args);
    }
}
